package com.item.controller;

import com.item.pojo.City;
import com.item.service.CityService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;

@RestController
public class CityController {

    @Resource
    private CityService cityService;


    @PostMapping("/findCity")
    public List<City> findCity() {
        return cityService.list();
    }
}
